package com.bdqn.qnnews.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
* APP已发布文章内容表
* @author xlzhang
 * @TableName ap_article_content
*/
@Data
@Accessors(chain = true)
@TableName("ap_article_content")
@Schema(name = "ApArticleContent 对象", description = "文章信息详情，存储已发布的文章详情 实体类")
public class ApArticleContent implements Serializable {

    @Schema(description = "主键id，雪花算法自动生成")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "文章ID")
    private Long articleId;

    @Schema(description = "文章内容")
    private String content;
}